<?php
$this->breadcrumbs=array(
	'Kinds'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Kind', 'url'=>array('index')),
	array('label'=>'Create Kind', 'url'=>array('create')),
	array('label'=>'Update Kind', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Kind', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Kind', 'url'=>array('admin')),
);
?>

<h1>View Kind #<?php echo $model->id; ?></h1>

<div class="span8">
<?php $this->widget('bootstrap.widgets.BootDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'uk',
		'kind_name',
		'last_modified_time',
	),
)); ?>
</div>


<h2><span class="span12"> Items</span></h2>


<div class="row-fluid">
<div class="span8">
<?php $this->widget('bootstrap.widgets.BootGridView',array(
	'type'=>'striped',
	'id'=>'children-entries-grid',
	'dataProvider'=>new CArrayDataProvider($model->children),
	#'filter'=>$model,
	'columns'=>array(
		array(
			'name'=>'id',
			'type'=>'raw',
			'value'=>'$data->id',
			'htmlOptions'=>array('style'=>'width:30px'),
		),
		array(
			'name'=>'name',
			'type'=>'raw',
			'value'=>'CHtml::link($data->name, array("/item/view","id"=>$data->id))'
		),
		array(
			'name'=>'Kind id',
			'type'=>'raw',
			'value'=>'$data->kind->kind_name',
		),
		'real_id',
//		array(
//			'class'=>'bootstrap.widgets.BootButtonColumn',
//			'htmlOptions'=>array(
//				'style'=>'width:100px;;text-align:right;',
//			),
//		),
	),
)); ?>
</div>
</div>